﻿@model IEnumerable<PeopleEntity.ViewPeople>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@using(Html.BeginForm())
{
 <div class="editor-label">
           @Html.Label("min Factor")
        </div>
    <div class="editor-field">
        @Html.Editor("min")
    </div>
    <div class="editor-label">
           @Html.Label("max Factor")
        </div>
        <div class="editor-field">
           @Html.Editor("max")
        </div>
        <input type="submit" value="Filter" />
}

<table>
    <tr>
        <th class="table-header">
            Name
        </th>
        <th class="table-header ">
            Factor
        </th>
        <th class="table-header ">
            Age
        </th>
        <th></th>
    </tr>
    
@foreach (var item in Model)
{
    <tr>
        <td class="table">
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td class="table">
            @Html.DisplayFor(modelItem => item.Factor)
        </td>
        <td class="table">
            @Html.DisplayFor(modelItem => item.Age)
        </td>
        
    </tr>
}

</table>
